package com.wz.project.system.jpaTest.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author zn kai
 * @create 2021-08-17 8:50
 */
@Table(name = "jpa_test")
@Entity
public class JpaTest implements Serializable {

    @Id
    private int id;

    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "JpaTest{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
